@extends('layouts.master')

@section('content')
    <div class="col-sm-8 blog-main">
        <h1>Create Blog</h1>
        <hr/>
        <form action="{{action('PostsController@store')}}" method="post">
            {{csrf_field()}}
            <div class="form-group">
                <label for="title">title</label>
                <input type="text" id="title" name="title" class="form-control">
            </div>
            <div class="form-group">
                <label for="body">content</label>
                <textarea class="form-control" id="body" name="body" rows="10"></textarea>
            </div>
            <button type="submit" class="btn btn-primary">submit</button>
        </form>
    </div>
@endsection